<?php
/**
 * Created by PhpStorm.
 * UsersF: Mloong
 * Date: 2018/12/5
 * Time: 16:36
 */

namespace app\admin\controller;

use app\admin\model\Record as RecordModel;

class Record extends BaseController
{
    public function index()
    {
        return $this->fetch('record/recordPhone');
    }
    # 获取所有注册记录
    public function allRecord()
    {
        $data = RecordModel::getAllRecord();
        return json([
           'code' => 0,
            'data' => $data['data'],
            'count' => $data['count']
        ]);
    }
}